package com.swc.secret;

/**
 * 抽象加解密类
 * @author huyupeng
 * @date 2020/9/18 8:56
 */
public abstract class AbstractSecret {

    /**
     * 加密
     * @param content
     * @param key
     * @param salt
     * @return
     */
    abstract public String encrypt(String content, String key, String salt) throws Exception;

    /**
     * 解密
     * @param content
     * @param key
     * @param salt
     * @return
     */
    abstract public String decrypt(String content, String key, String salt) throws Exception;

}
